<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://unpkg.com/vue@next"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js"></script>
  <style>
    .flip-list-move {
      transition: transform 0.8s ease;
    }
  </style>
</head>
<body>
  <div id="app">
    <button @click="shuffle">shuffle</button>
    <transition-group name="flip-list" tag="ul">
      <li v-for="item in items" :key="item">
        {{ item }}
      </li>
    </transition-group>
  </div>

  <script>
    const app = Vue.createApp({
      setup() {
        let items = Vue.reactive([1, 2, 3, 4, 5, 6, 7, 8, 9])
        return {
          items
        }
      },
      methods: {
        shuffle() {
          this.items = _.shuffle(this.items)
        }
      }
    })

    app.mount('#app')
  </script>
</body>
</html>